package com.treetao.union.db.mapper;

import java.util.Set;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.treetao.union.db.model.SysMenu;
import com.treetao.union.db.model.SysRole;

/**
 * <p>
  *  Mapper 接口
 * </p>
 */
public interface SysRoleDao extends BaseMapper<SysRole> {

	SysRole selectRoleById(@Param("id") Long id);

    void saveRoleMenus(@Param("roleId") Long id, @Param("menus") Set<SysMenu> menus);

    void dropRoleMenus(@Param("roleId")Long roleId);

    void dropRoleUsers(@Param("roleId")Long roleId);
}